function load_ssim(file1, file2);
% Trying to load the SSIM compare along with calculating PSNR.

img1 = imread(file1);
img1 = rgb2gray(img1);
img2 = imread(file2);
img3 = img2;
[row, col] = size(img1);

figure(1);
psnr = cal_psnr(img1, img2);
[mssim, ssim_map] = ssim_index(img1, img2);
subplot(2, 3, 1),imshow(ssim_map);
mssim, psnr

for i = 1 : 5
    img4 = imnoise(img2, 'gaussian', 0, 0.001 * i);
    img4 = uint8(round(img4));
    psnr = cal_psnr(img1, img4);
    [mssim, ssim_map] = ssim(img1, img4);
    % subplot(2, 3, i + 1),imshow(ssim_map);
    subplot(2, 3, i + 1),imshow(img4);
    i, mssim, psnr
end

figure(2);
for k = 1 : 5
    dct_img = dct2(im2double(img3));
    dct_img_new = zeros(row, col);
    for i = 1 : row / (8 * k)
        for j = 1 : col / (8 * k)
            dct_img_new(i, j) = dct_img(i, j);
        end
    end
    img3 = idct2(dct_img_new);
    img3 = im2uint8(img3);
    psnr = cal_psnr(img1, img3);
    [mssim, ssim_map] = ssim(img1, img3);
    subplot(2, 3, k + 1),imshow(img3);
    k, mssim, psnr
end